package mnnu.ghbe.entity;

import jakarta.persistence.*;

@Entity
@Table(name = "ranking")
public class Ranking {
    @Id
    @Column(name = "user_id")
    private Long userId;
    
    private Integer score;
    
    // Constructors
    public Ranking() {}
    
    public Ranking(Long userId, Integer score) {
        this.userId = userId;
        this.score = score;
    }
    
    // Getters and Setters
    public Long getUserId() {
        return userId;
    }
    
    public void setUserId(Long userId) {
        this.userId = userId;
    }
    
    public Integer getScore() {
        return score;
    }
    
    public void setScore(Integer score) {
        this.score = score;
    }
}